package com.li.chat.job.cycle;

import com.li.chat.esdao.PostEsDao;
import com.li.chat.model.dto.post.PostEsDTO;
import com.li.chat.model.entity.Post;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
import javax.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import cn.hutool.core.collection.CollUtil;
import org.springframework.scheduling.annotation.Scheduled;


//@Component
@Slf4j
public class IncSyncPostToEs {


    @Resource
    private PostEsDao postEsDao;

    /**
     * 每分钟执行一次
     */
    @Scheduled(fixedRate = 60 * 1000)
    public void run() {
        // 查询近 5 分钟内的数据

    }
}
